/*******************************************************************************
 * Copyright 2013 Mindaugas Idzelis
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package incontrol.bf3.protocol.events.datatype;

public enum BF3Map {
	// @formatter:off
	GRANDBAZAAR("MP_001"),
	TEHERAN("MP_003"),
	CASPIAN("MP_007"),
	SEINE("MP_011"),
	FIRESTORM("MP_012"),
	DAVAMAND("MP_013"),
	NOSHAHR("MP_017"),
	KHARG("MP_018"),
	METRO("MP_Subway"),
	
	KARKAND("XP1_001"),
	OMAN("XP1_002"),
	SHARQI("XP1_003"),
	WAKE("XP1_004"),
	
	SCRAPMETAL("XP2_Factory"),
	OP925("XP2_Office"),
	DONYA("XP2_Palace"),
	ZIBA("XP2_Skybar");
	// @formatter:on

	private String id;

	private BF3Map(String id) {
		this.id = id;
	}

	public static BF3Map lookup(String id) {
		for (BF3Map map : BF3Map.values()) {
			if (map.id.equals(id))
				return map;
		}
		return null;
	}
}
